<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>个人用户密码初始化</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript" language="javascript">
		function checkForm(){
			var pwd1 = document.getElementById("GMima").value;
			var pwd2 = document.getElementById("newGMima").value;
			if(pwd1==""||pwd2==""){
				alert('不能为空！');
				return false;
			}
			if(pwd1.length<6||pwd2.length<6){
				alert('密码长度必须大于6位！');
				return false;
			}
			if(pwd1.length>20||pwd2.length>20){
				alert('密码长度不能超过20位！');
				return false;
			}
			if(pwd1==pwd2){
				return true;
			}else{
				alert('两次密码输入不一致');
				return false;
			}
			return true;
		}	
	</script>
  </head>
  
  <body>
  		<c:set var="linkStr" value="&bk_GYonghum=${bk_GYonghum}
		&bk_turename=${bk_turename}&bk_ifdel=${bk_ifdel}&page=${page}"></c:set>
		<html:form action="/admin/member/member_list.do?method=EditMemberPwd${linkStr}">
			<logic:present name="detail">
				<table>
				<tr>
					<td>个人会员ID：${detail.GUserid} <html:hidden property="GUserid" value="${detail.GUserid}"/> </td>
				</tr>
				<tr>
					<td>用户名：${detail.GYonghum}
						${linkStr}
					</td>
				</tr>
				<tr>
					<td>新密码：&nbsp;<html:password property="GMima" value=""></html:password></td>
				</tr>
				<tr>
					<td>重复密码：<html:password property="newGMima" value=""></html:password></td>
				</tr>
				<tr>
					<td><html:submit value="确定修改" onclick="return checkForm();"></html:submit>
					&nbsp;<html:reset value="重置" /></td>
				</tr>
				</table>
			</logic:present>
			<logic:notPresent name="detail">
					sorry , It's not exits;
			</logic:notPresent>
		</html:form>
  </body>
</html:html>
